<div class="newsslider">
        	<div style="top: -192px; opacity: 1;" class="newsslidercontent" id="newsslider">
<?php 
$slides =  $cquery->getContentByCatLimit($SLIDER_ONE,0,4);
 $cnt =0;
 foreach($slides as $slide){
 $cnt++;
 $pix="";
 if($SLIDER_WITH_PIX)
 {
 	$pix = $cquery->getFirstImageResource($slide["content_id"]);
 }
 $url = $url =$fxn->processURL("page", $slide["content_id"], $slide["page_title"], $slide["direct_link"]);
 ?>
<div id="newssection-<?php echo $cnt; ?>" class="newssection upper"> 
<?php if(strlen($pix)>0) {?>
	<img src="<?php echo $HOME_URL."resources/".$pix;?>" alt="<?php echo $slide["page_title"]; ?>" class="imgleft" /> 
<?php } ?>
		<a href="<?php echo $url; ?>" class="redtxt"> <?php echo $slide["page_title"]; ?></a></div>
<?php 
 }
?>
</div>
</div>
<script type="text/javascript">

autoScroll('newsslider','newssection',5,true);
</script>
